package com.gaoyi.crm.db.entity;

import androidx.room.Entity;
import androidx.room.Index;
import androidx.room.PrimaryKey;

import com.gaoyi.crm.db.CacheDatabase;

@Entity(tableName = CacheDatabase.TABLE_HTTP_CACHE,indices = {@Index(value = {"url","param"},unique = true)})
public class HttpCache {
    @PrimaryKey(autoGenerate = true)
    private int id;
    private String url;
    private String param;
    private String response;

    public HttpCache(String url, String param, String response) {
        this.url = url;
        this.param = param;
        this.response = response;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getParam() {
        return param;
    }

    public void setParam(String param) {
        this.param = param;
    }

    public String getResponse() {
        return response;
    }

    public void setResponse(String response) {
        this.response = response;
    }
}
